package com.breeze.media;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.breeze.media.audio.AudioActivity;
import com.breeze.media.camera.CameraActivity;
import com.breeze.media.camera.CameraVideoActivity;
import com.breeze.media.codec.CodecActivity;
import com.breeze.media.video.VideoEntryActivity;

import java.nio.ByteBuffer;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        ByteBuffer byteBuffer;
    }

    public void openAudio(View view) {
        start(AudioActivity.class);
    }

    public void openCamera(View view) {
        start(CameraActivity.class);
    }

    public void openCameraRecord(View view) {
        start(CameraVideoActivity.class);
    }

    public void openVideo(View view) {
        start(VideoEntryActivity.class);
    }

    public void openCodec(View view) {
        start(CodecActivity.class);
    }

    private void start(Class<?> cls) {
        startActivity(new Intent(this, cls));
    }
}